package vg.interfaces.ll_services.data_base_service.data.header;

public class EdgeHeader implements Cloneable {
	// Main data
	private int id;
    private int graphId;
    private int sourceId;
    private int targetId;
	
	public EdgeHeader(int id, int graphId) {
		this(id, graphId, -1, -1);
	}
	
	public EdgeHeader(int id, int graphId, int sourceId, int targetId) {
		this.id = id;
		this.graphId = graphId;
		this.sourceId = sourceId;
		this.targetId = targetId;
	}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getGraphId() {
        return graphId;
    }

    public void setGraphId(int graphId) {
        this.graphId = graphId;
    }

    public int getSourceId() {
        return sourceId;
    }

    public void setSourceId(int sourceId) {
        this.sourceId = sourceId;
    }

    public int getTargetId() {
        return targetId;
    }

    public void setTargetId(int targetId) {
        this.targetId = targetId;
    }

    @Override
    public EdgeHeader clone() {
        return new EdgeHeader(id, graphId, sourceId, targetId);
    }
}
